/**
 * Copyright (C) 2010 Cloudfarming <info@cloudfarming.nl>
 *
 * Licensed under the Eclipse Public License - v 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.eclipse.org/legal/epl-v10.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.cloudfarming.client.sensor.cropcircle.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import nl.cloudfarming.client.model.SensorData;
import nl.cloudfarming.client.model.SensorDataFile;

/**
 * @author Merijn Zengers
 */
@Entity
@DiscriminatorValue("cropcirlce")
public class CropcircleSensorData extends SensorData implements Serializable {

    @Column(name = "FIX_TYPE")
    private int fixType;
    @Column(name = "UTC_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date utcTime;
    private double speed;
    private double course;
    private double sensor;
    private double vi1;
    private double vi2;
    private double r1;
    private double r2;
    private double r3;
    @Column(name = "APP_RATE")
    private String appRate; //  NOT USED ?

    protected CropcircleSensorData() {
    }

    /**
     * Constructor for creating a GeoSensorDataBO
     */
    public CropcircleSensorData(SensorDataFile dataFile, double longtitude, double latitude, Integer fixType, Date utcTime,
            double speed, double course, double sensor, double vi1, double vi2, double r1, double r2, double r3, String appRate) {
        super(dataFile, longtitude, latitude);
        this.fixType = fixType;
        this.utcTime = utcTime;
        this.speed = speed;
        this.course = course;
        this.sensor = sensor;
        this.vi1 = vi1;
        this.vi2 = vi2;
        this.r1 = r1;
        this.r2 = r2;
        this.r3 = r3;
        this.appRate = appRate;
    }

    public String getAppRate() {
        return appRate;
    }

    public void setAppRate(String appRate) {
        this.appRate = appRate;
    }

    public double getCourse() {
        return course;
    }

    public void setCourse(double course) {
        this.course = course;
    }

    public Integer getFixType() {
        return fixType;
    }

    public void setFixType(Integer fixType) {
        this.fixType = fixType;
    }

    public double getR1() {
        return r1;
    }

    public void setR1(double r1) {
        this.r1 = r1;
    }

    public double getR2() {
        return r2;
    }

    public void setR2(double r2) {
        this.r2 = r2;
    }

    public double getR3() {
        return r3;
    }

    public void setR3(double r3) {
        this.r3 = r3;
    }

    public double getSensor() {
        return sensor;
    }

    public void setSensor(double sensor) {
        this.sensor = sensor;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public Date getUtcTime() {
        return utcTime;
    }

    public void setUtcTime(Date utcTime) {
        this.utcTime = utcTime;
    }

    public double getVi1() {
        return vi1;
    }

    public void setVi1(double vi1) {
        this.vi1 = vi1;
    }

    public double getVi2() {
        return vi2;
    }

    public void setVi2(double vi2) {
        this.vi2 = vi2;
    }
}
